<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/derek-tags" prefix="dk" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<SCRIPT type="text/javascript">
		
		function submitTest(){
			var doAction = document.getElementById('doAction');
			doAction.value='testException';
			var fr = document.testFrame;
			fr.submit();
		}
	</SCRIPT>
  </head>
  
  <body>
    <s:form namespace="/test"  action="testFrameAction" method="post"  name="testFrame" >
    	<s:actionerror/>
    	<dk:showHidden pageId="testFrame"/>
    	用户名:<s:textfield name="userName"></s:textfield>
    	密     码:<s:textfield name="password"></s:textfield>
    	<input type="button" value="提交" onclick="submitTest();" />
    </s:form>
  </body>
</html>
